#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct student
{
    //结构体成员需要偏移对齐
    char name[21];
    int age;
    int score[3];
};

int main(void)
{
    struct student stu[3] =
        {
            {"黄某航", 22, 88, 99, 0},
            {"马某羊", 18, 59, 59, 59},
            {
                "大法师",
                30,
                100,
                100,
                100,
            }};
    for (int i = 0; i < 3; i++)
    {
        printf("姓名：%s\n", stu[i].name);
        printf("年龄：%d\n", stu[i].age);
        // printf("成绩1：%d\n", stu[i].score[0]);
        // printf("成绩2：%d\n", stu[i].score[1]);
        // printf("成绩3：%d\n", stu[i].score[2]);
    }
    return 0;
}